package cn.edu.hncst.service;

import cn.edu.hncst.entity.User;

import java.util.List;

public interface UserService {
    List<User> queryAll();
    int addUser(User user);
    int updateUser(User user);
    int deleteById(Integer id);
    int[] deleteByIds(String... ids);
    List<User> pageQuery(int startCount, int pageSize);
    User findById(String username,String password);
    int queryTotalCount();
    List<User> searchUser(String keywords, int startCount, int pageSize);
    int querySearchCount(String keywords);
}
